# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=sc-make
pkgver=12.7e39718
pkgrel=4
groups=('blackarch' 'blackarch-exploitation' 'blackarch-automation')
pkgdesc='Tool for automating shellcode creation.'
arch=('any')
url='https://github.com/t00sh/sc-make'
depends=('perl' 'nasm' 'binutils' 'strace')
makedepends=('git')
license=('GPL3')
source=("git+https://github.com/t00sh/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.pl" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

